<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">项目基本情况</div>
	<table class="t_css" id="basic_tab" width="100%" border="0" cellpadding="0"
	    cellspacing="1">
		<col style="width: 20%" />
		<col style="width: 20%" />
		<col style="width: 20%" />
		<col style="width: 20%" />
		<col style="width: 20%" />
	    <tr class="li_1">
	        <td align="right">机构名称：</td>
	        <td colspan="2">
	        	<x:out select="$xmlData/data/proposal/zh_title"/>
	        </td>
			<td align="right">成立日期：</td>
			<td colspan="1">
				<x:out select="$xmlData/data/proposal/establishmen_date"/>
			</td>
	    </tr>
		<tr>
			<td align="right">归口管理单位：</td>
	        <td colspan="2">
	        	<x:out select="$xmlData/data/proposal/recomend_org_name" />
	        </td>
		    <td  align="right" >申报日期：</td>
			<td >
				<x:out select="$xmlData/data/proposal/submit_date" />
			</td>
		</tr>

		<tr>
			<td  align="right">机构类型：</td>
			<td  colspan="4" align="left" >
				<c:set var="institutional_type_value">
					<x:out select="$xmlData/data/proposal/institutional_type_value" />
				</c:set>
				<c:set var="institutional_type_other">
					<x:out select="$xmlData/data/proposal/institutional_type_other" />
				</c:set>
				<cpt:checkbox key="institutional_type" name="institutional_type"
							  width="25%" repeatColumn="4" value="${institutional_type_value }"
							  lastOther="true" otherId="certificate_teachtype_other" showFlag="view"
							  otherValueName="${institutional_type_other }"></cpt:checkbox>			</td>
		</tr>
		<tr>
			<td align="right">注册地址：</td>
			<td colspan="2">
				<x:out select="$xmlData/data/organizations/organization/address" />
			</td>
			<td align="right">统一社会信用代码：</td>
			<td>
				<x:out select="$xmlData/data/organizations/organization/org_shxy_no" />
			</td>
		</tr>
		<tr>
			<td align="right">法人类型：</td>
			<td colspan="4">
				<c:set var="faren_type">
					<x:out select="$xmlData/data/proposal/faren_type_value" />
				</c:set>
				<cpt:checkbox key="faren_type1" showFlag="view" name="faren_type" onClick="changefaren" repeatColumn="4" className="input_css required " value="${faren_type }" tagType="radio" style="border: 0px; padding: 0px; margin: 0px;" ></cpt:checkbox>
			</td>

		</tr>
		<tr >
			<td align="right" rowspan="2">法人代表：</td>
			<td align="right">姓名：</td>
			<td >
				<x:out select="$xmlData/data/proposal/cname"/>
			</td>
			<td align="right">职务：</td>
			<td >
				<x:out select="$xmlData/data/proposal/position"/>
			</td>

		</tr>
		<tr>
			<td align="right">办公电话：</td>
			<td >
				<x:out select="$xmlData/data/proposal/tel"/>
			</td>
			<td align="right">手机：</td>
			<td>
				<x:out select="$xmlData/data/proposal/mobile"/>
			</td>
		</tr>

		<tr>
			<td align="right" rowspan="3">联系人：</td>
			<td align="right">姓名：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_psnname" />
			</td>
			<td align="right">手机：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_mobile" />
			</td>
		</tr>

		<tr>
			<td align="right">职务：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_position"/>
			</td>
			<td align="right">QQ号：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_qq"/>
			</td>
		</tr>
        <tr>
            <td align="right">电子邮箱：</td>
            <td>
                <x:out select="$xmlData/data/proposal/fzr_email"/>
            </td>
            <td align="right">联系电话：</td>
            <td>
                <x:out select="$xmlData/data/proposal/fzr_tel"/>
            </td>
        </tr>
		<tr align="center">
			<td rowspan="3">人员情况</td>
			<td >员工总数（人）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/all_people" />
			</td>
			<td >兼职专家（人）</td>

			<td align="center">
				<x:out select="$xmlData/data/proposal/expert_people" />
			</td>
		</tr>
		<tr align="center">
			<td >大学本科及以上（人）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/undergraduate_people" />
			</td>
			<td >占总人数比例（%）</td>
			<td align="center" >
				<x:out select="$xmlData/data/proposal/undergraduate_proportion" />
			</td>
		</tr>
		<tr align="center">
			<td >中级职称及以上（人）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/intermediate_people" />
			</td>
			<td >占总人数比例（%）</td>
			<td align="center" >
				<x:out select="$xmlData/data/proposal/intermediate_proportion" />
			</td>
		</tr>

		<tr align="center">
			<td rowspan="2"><span class="color_red">*</span>科技创新服务</td>
			<td >为企业提供技术数量（项）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/technologies_number" />
			</td>
			<td >为企业挖掘创新需求数量（项）</td>
			<td align="center" >
				<x:out select="$xmlData/data/proposal/quantity_demand" />
			</td>
		</tr>
		<tr align="center">
			<td >开展科技成果对接数量（项）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/docking_number" />
			</td>
			<td >向企业推介专家、人才数量（人次）</td>
			<td align="center" >
				<x:out select="$xmlData/data/proposal/talents_number" />
			</td>
		</tr>

		<tr align="center">
			<td rowspan="2"><span class="color_red">*</span>政策咨询服务</td>
			<td >协助企业申请知识产权服务数（项）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/services_number" />
			</td>
			<td >协助企业制定标准服务数（项）</td>
			<td align="center" >
				<x:out select="$xmlData/data/proposal/standard_number" />
			</td>
		</tr>
		<tr align="center">
			<td >协助企业申报项目、资质认定等数量（项）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/cognizance_number" />
			</td>
			<td >为企业提供政策咨询、产学研合作、资本对接活动数（项/次）</td>
			<td align="center" >
				<x:out select="$xmlData/data/proposal/activities_number" />
			</td>
		</tr>

		<tr align="center">
			<td ><span class="color_red">*</span>评估评价服务</td>
			<td >技术评估服务数（项）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/evaluation_number" />
			</td>
			<td >科技成果评价数（项）</td>
			<td align="center" >
				<x:out select="$xmlData/data/proposal/evaluate_number" />
			</td>
		</tr>



		<tr align="center">
			<td rowspan="2"><span class="color_red">*</span>技术交易服务</td>
			<td >促进供需双方合作项目数（项）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/cooperation_number" />
			</td>
			<td >促进供需双方合作项目金额（万元）</td>
			<td align="center" >
				<x:out select="$xmlData/data/proposal/cooperation_money" />
			</td>
		</tr>
		<tr align="center">
			<td >促成投融资服务项目数（项）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/financing_number" />
			</td>
			<td >促成投融资服务项目金额（万元）</td>

			<td align="center" >
				<x:out select="$xmlData/data/proposal/financing_money" />
			</td>
		</tr>

		<tr align="center">
			<td ><span class="color_red">*</span>综合服务业绩</td>
			<td >2019年服务企业数（家）</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/enterprise_number" />
			</td>
			<td >2019年技术服务收入（万元）</td>

			<td align="center" >
				<x:out select="$xmlData/data/proposal/enterprise_money" />
			</td>
		</tr>

</table>

<div class="t_bar"><span class="color_red">*</span>经营条件</div>
<table class="t_css" id="basic_tab1" width="100%" border="0" cellpadding="0" cellspacing="1">
	<col style="width: 20%" />
	<col style="width: 20%" />
	<col style="width: 20%" />
	<col style="width: 20%" />
	<col style="width: 20%" />
	<tr align="center">
		<td >办公面积(平米)</td>
		<td align="center" colspan="2">
			<x:out select="$xmlData/data/proposal/office_area" />
		</td>
		<td ><span class="color_red">*</span>网站域名</td>
		<td align="left">
			<x:out select="$xmlData/data/proposal/domain_name" />
		</td>
	</tr>

</table>
<table  id="operating_conditions" border="0" cellspacing="0" cellpadding="0" class="table01 t_css">
	<thead >
		<tr>
			<th align="center" width="10%">序号</th>
			<th align="center" width="50%">数据库名称</th>
			<th align="center" width="40%">数据数量（条）</th>
		</tr>
	</thead>
			<tbody id="operating_condition_tab">
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/operating_conditions/operating_condition" var="operating_condition">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
					
						<td align="center">
							<span   name="operating_conditions/operating_condition[${flag}${index}]@seq_no" >
								<x:out select="$operating_condition/@seq_no"/></span>
						</td>
						<td  style="word-wrap:break-word;word-break:break-all;">
							<x:out select="$operating_condition/database_name" />
						</td>

						<td  style="word-wrap:break-word;word-break:break-all;" align="center">
							<x:out select="$operating_condition/data_number" />
						</td>
						

					</tr>
						<c:set var="beggerClass"></c:set>
						<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>  
				</tbody>
			</table>
<div class="t_bar">主营业务范围</div>
<table id="tblMileStones0" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
				<col style="width:34%"/>
				<col style="width:40%"/>
				<col style="width:13%"/>
				<col style="width:13%"/>
				<tr>
					<td colspan="4" style="word-break: break-all;">
						<x:out select="$xmlData/data/proposal/main_business_hidden" escapeXml="false"/>
					</td> 
				</tr>
</table> 
			
	
<script type="text/javascript">
	function initTreeValueExt(treeId, treeNode) {
		if ((treeNode && treeNode.isParent)) {
			scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
			return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
	}
	
function initControlValue(objId){
	    
	    var name="";
	    var obj=$("#"+objId);
	    if(obj.is("select")){
	        name=obj.attr("name");
	        obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
	        $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
	    }
	   
	    else if(obj.is(":radio")){
	        name=obj.attr("name");
	        if(obj.is(":checked")){//如果被选中
	            //alert($("#"+objId).val());        
	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	            $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
	        }
	        else{
	            
	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
	        }
	    }else if(obj.is(":checkbox")){
	        name=obj.attr("name");
	        if(obj.is(":checked"))//如果被选中
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	        else
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
	    }else{
	        name=obj.attr("id");
	        obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
	        obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
	    }   
	}


	
	$(function(){
		/*initControl11();*/
		$("#tab1").click();
		$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
		$("#fragment-tab1 select").addClass("select_width");

		$("table.t_css").each(function(){  
		    $(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
		    $(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
		});
		})

</script>
